﻿@using Microsoft.JSInterop;
@using System.Resources;
@using System.IO;
@implements IAsyncDisposable
@inject IJSRuntime JS

<h3>FirstPage</h3>

<div class="fff1">
    fff1 div

</div>

@code {
    private IJSObjectReference module;

    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {
            module = await JS.InvokeAsync<IJSObjectReference>("import", "./PageComponets/FirstPage.razor.js");
        }
    }


    async ValueTask IAsyncDisposable.DisposeAsync()
    {
        if (module is not null)
        {
            await module.DisposeAsync();
        }
    }
}
